import axios from "../apis/request";

// query menus
export const QueryMenuApi = (sysCode: string) => {
    return axios({
        url: '/auth/menu/getAllMenu?sys_code=' + sysCode,
        method: 'get',
        config: {}
    });
}

export const getCurrentUserMenus = () => {
    return axios({
        url: '/auth/menu/getCurrentUserMenus',
        method: 'get',
        config: {}
    })
}
